package homework.test02;

/*
 *操作类:负责对Student的数据进行操作
 *
 * */
public class StudentOperator {
    //1.要操作,首先要接受到类的对象这个存储结构
    private Student s;

    public StudentOperator(Student s) {
        this.s = s;
    }

    //2.业务需求:展示对象的信息
    public void show(){
        System.out.println("姓名: " + s.getName() + "\t"+"年龄:" + s.getAge());
    }
}
